package com.qj.yantaishan.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qj.yantaishan.domain.OrderPackage;

/**
 * 订单包裹Mapper接口
 * 
 * @author qihe
 * @date 2022-07-22
 */
public interface OrderPackageMapper extends  BaseMapper<OrderPackage>
{
    /**
     * 查询订单包裹
     * 
     * @param packageId 订单包裹主键
     * @return 订单包裹
     */
    public OrderPackage selectOrderPackageByPackageId(Long packageId);

    /**
     * 查询订单包裹列表
     * 
     * @param orderPackage 订单包裹
     * @return 订单包裹集合
     */
    public List<OrderPackage> selectOrderPackageList(OrderPackage orderPackage);

    /**
     * 新增订单包裹
     * 
     * @param orderPackage 订单包裹
     * @return 结果
     */
    public int insertOrderPackage(OrderPackage orderPackage);

    /**
     * 修改订单包裹
     * 
     * @param orderPackage 订单包裹
     * @return 结果
     */
    public int updateOrderPackage(OrderPackage orderPackage);

    /**
     * 删除订单包裹
     * 
     * @param packageId 订单包裹主键
     * @return 结果
     */
    public int deleteOrderPackageByPackageId(Long packageId);

    /**
     * 批量删除订单包裹
     * 
     * @param packageIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteOrderPackageByPackageIds(String[] packageIds);
}
